package com.mdd.front.service.impl;

import com.mdd.common.entity.ChinaCity;
import com.mdd.common.mapper.ChinaCityMapper;
import com.mdd.front.service.CarScoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarScoreServiceImpl implements CarScoreService {
    @Resource
    ChinaCityMapper chinaCityMapper;


    @Override
    public List<ChinaCity> queryAllChinaProvince() {
        return chinaCityMapper.queryAllChinaProvince();
    }

    @Override
    public List<ChinaCity> queryAllCitiesByPid(long id) {
        return chinaCityMapper.queryAllCitiesByPid(id);
    }

    @Override
    public ChinaCity queryCityByCityName(String cityName) {
        return chinaCityMapper.queryCityByCityName(cityName);
    }
}
